package com.register.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.register.model.User;
import com.register.service.UserService;

@RestController
@RequestMapping("/user")
public class UserController {

	@Autowired
	private UserService userSrv;
	
	@RequestMapping(path="/spring-event",method=RequestMethod.GET)
	public void register() {
        userSrv.register(new User("张三", "123"));
	}
	
}
